package com.order.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@ApiModel(value="商品类目表(ProductCategory)对象")
@TableName("product_category")
public class ProductCategory {

    @ApiModelProperty(value = "类目编号")
    @TableId(value = "category_id",type = IdType.AUTO)
    private Integer categoryId;

    @ApiModelProperty(value = "类目名称")
    @TableField("category_name")
    private String categoryName;

    @ApiModelProperty(value = "类目类型")
    @TableField("category_type")
    private Integer categoryType;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private String createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_time")
    private String updateTime;

    @ApiModelProperty(value = "是否删除 0未删除 1已删除")
    @TableField("category_del")
    private Integer categoryDel;

    public ProductCategory(Integer categoryId, Integer categoryDel) {
        this.categoryId = categoryId;
        this.categoryDel = categoryDel;
    }
}
